package com.mes.biz.domain;

import javax.validation.constraints.NotBlank;

import com.mes.common.core.domain.BaseEntity;
import lombok.Data;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;

/**
 * 销售单附件对象 biz_order_attach
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
@Data
public class BizOrderAttach extends BaseEntity<BizOrderAttach>
{
    private static final long serialVersionUID = 1L;

    /** 销售单 */
    @Excel(name = "销售单")
    @NotBlank(message = "销售单不允许为空")
    @LogField
    @FieldRemark(name = "销售单",field = "orderId")
    private String orderId;

    /** 附件id */
    @Excel(name = "附件id")
    @NotBlank(message = "附件id不允许为空")
    @LogField
    @FieldRemark(name = "附件地址",field = "attachPath")
    private String attachPath;

    /** 类型1销售单2销售单水槽到货 */
    @Excel(name = "类型1销售单2销售单水槽到货")
    @LogField
    @FieldRemark(name = "类型1销售单2销售单水槽到货4安装图片",field = "type")
    private Integer type;

    /** 租户id */
    @Excel(name = "租户id")
    @NotBlank(message = "租户id不允许为空")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;
}
